package com.nanmeishu.services.tale.service;

import com.nanmeishu.services.tale.entity.RecommendCity;
import com.nanmeishu.services.tale.entity.RecommendCityGroup;
import com.nanmeishu.services.tale.facade.RecommendCityService;
import com.nanmeishu.services.tale.mapper.RecommendCityGroupMapper;
import com.nanmeishu.services.tale.mapper.RecommendCityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("recommendCityService")
public class RecommendCityServiceImpl implements RecommendCityService {

    @Autowired
    private RecommendCityGroupMapper recommendCityGroupMapper;

    @Override
    public List<RecommendCityGroup> listRecommendCityGroup() {
        List<RecommendCityGroup> recommendCityGroups=recommendCityGroupMapper.listRecommendCityGroupAndDetails();
        return recommendCityGroups;
    }
}
